package com.ltu.ai.sparkdesk.websocket.ultra;

import java.util.List;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;


public class ResponSparkData {
	
	private Header header;
	private  Payload payload;
	

   public Header getHeader() {
		return header;
	}
	public void setHeader(Header header) {
		this.header = header;
	}
	public Payload getPayload() {
		return payload;
	}
	public void setPayload(Payload payload) {
		this.payload = payload;
	}
	
	public static class Header {
	   private   int code;
        private   int status;
        private  String sid;
		public int getCode() {
			return code;
		}
		public void setCode(int code) {
			this.code = code;
		}
		public int getStatus() {
			return status;
		}
		public void setStatus(int status) {
			this.status = status;
		}
		public String getSid() {
			return sid;
		}
		public void setSid(String sid) {
			this.sid = sid;
		}
        
    }

	public  static  class Payload {
        Choices choices;
        JSONObject  usage;
		public Choices getChoices() {
			return choices;
		}

		public void setChoices(Choices choices) {
			this.choices = choices;
		}

		public JSONObject getUsage() {
			return usage;
		}

		public void setUsage(JSONObject usage) {
			this.usage = usage;
		}
		
        
    }

   public  static class Choices {
	   private   List<Text> text;

	public List<Text> getText() {
		return text;
	}

	public void setText(List<Text> text) {
		this.text = text;
	}
	   
    }

   public  static  class Text {
	   private    String role;
	   private    String content;
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	   
    }
   public   static  class RoleContent{
	   private  String role;
	   private  String content;
	   private  String   action;
	   private  JSONArray   questions;

	   
        public RoleContent(String role, String content,String   action) {
		super();
		this.role = role;
		this.content = content;
		this.action = action;
	}
        public RoleContent(String role,JSONArray   questions,String action) {
        	super();
        	this.role = role;
        	this.questions = questions;
        	this.action = action;
        	
        }

		public String getRole() {
            return role;
        }

        public void setRole(String role) {
            this.role = role;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

		public String getAction() {
			return action;
		}

		public void setAction(String action) {
			this.action = action;
		}

		public JSONArray getQuestions() {
			return questions;
		}

		public void setQuestions(JSONArray questions) {
			this.questions = questions;
		}
		
        
    }

}
